<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>英正网络[www.xuehen.org]后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="/Public/JS/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/JS/admin-common.js"></script>
</head>

<body>


<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>
<div class="title title-product">产品列表</div>
<style type="text/css">
.sbox{background:#CCC; padding:5px;}
.input{border:#FFF solid 1px;}
option{margin:10px; padding:10px;}
</style>
<div class="sbox">
  <form name="form1" method="post" action="<?php echo U('search');?>">
    <label>
      <select name="catid" id="catid">
        <option value="0">不限分类</option>
        <?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><option value="<?php echo ($list['id']); ?>"><?php echo ($list['name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
      </select>
    </label>
    <label>
      <input class="input" type="text" name="k" id="k">
    </label>
    <input type="submit" name="button" id="button" value="搜索">
  </form>
</div>
<table class="table" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="first">
    <td width="30" align="center" valign="middle">ID</td>
    <td>标题</td>
    <td width="100" align="center" valign="middle">所属分类</td>
    <td width="150" align="center" valign="middle">发布时间</td>
    <td width="120" align="center" valign="middle">操作</td>
  </tr>
  <?php if(is_array($article)): $i = 0; $__LIST__ = $article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
    <td width="30" align="center" valign="middle"><?php echo ($list['id']); ?></td>
    <td><?php echo ($list['title']); ?></td>
    <td width="100" align="center" valign="middle"><?php echo getCatName($list['catid']);?></td>
    <td width="150" align="center" valign="middle"><?php echo date('Y-m-d H:i:s',$list['time']);?></td>
    <td width="120" align="center" valign="middle"><a class="edit" href="<?php echo U('edit','id='.$list['id']);?>">修改</a> <a class="del" href="<?php echo U('delete','id='.$list['id']);?>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>



</body>
</html>